{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('admin/adminUser/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card">
	<div class="card-body">
		<form method="post" action="{:url('admin/adminUser/doAdd')}" enctype="multipart/form-data" class="form-horizontal J_ajaxForm">
			<input type="hidden" name="id" value="{$id}" />

			<div class="form-group row">
				<label class="col-md-2 control-label">用户名</label>
				<div class="col-md-5">
					<input type="text" class="form-control" name="data[username]" value="{$info['username']}" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">密码</label>
				<div class="col-md-5">
					<input type="text" class="form-control" name="data[password]" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">状态</label>
				<div class="col-sm-5">
					<?php echo optionRadioHtmlB($user_status_config, 'data[status]', $info['status']); ?>
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">用户组</label>
				<div class="col-md-5">
					<?php echo selectHtmlB($groupList, 'data[groupid]', $info['groupid'], 'name', 'id', 'form-control'); ?>
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">姓名</label>
				<div class="col-sm-5">
					<input type="text" name="data[realname]" value="{$info['realname']}" class="form-control" />
				</div>
				<div class="col-sm-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">手机</label>
				<div class="col-sm-5">
					<input type="text" name="data[mobile]" value="{$info['mobile']}" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">备注</label>
				<div class="col-sm-5">
					<input type="text" name="data[remark]" value="{$info['remark']}" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="clearfix form-actions">
				<div class="offset-md-2 col-sm-10">
					<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存修改</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}


{block name="script"}
{/block}